home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / DEFINES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  8.8 KB  |  350 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // Define Header File
  8. //
  9. // YOU DO NOT NEED TO INCLUDE THIS HEADER FILE IN YOUR PROGRAMS!
  10. // JUST INCLUDING FLI.H WILL DO THIS FOR YOU AUTOMATICALLY!
  11. //
  12.  
  13. #ifndef __FusionDefines__
  14. #define __FusionDefines__
  15.  
  16. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  17. //                                                                           //
  18. // enum Coloring - Defines colors                                            //
  19. //                                                                           //
  20. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  21.  
  22. enum Coloring
  23. {
  24.   fBlack,
  25.   fBlue,
  26.   fGreen,
  27.   fCyan,
  28.   fRed,
  29.   fMagenta,
  30.   fBrown,
  31.   fLightGray,
  32.   fGray,
  33.   fLightBlue,
  34.   fLightGreen,
  35.   fLightCyan,
  36.   fLightRed,
  37.   fLightMagenta,
  38.   fYellow,
  39.   fWhite,
  40.  
  41.   bBlack=0,
  42.   bBlue=16,
  43.   bGreen=32,
  44.   bCyan=48,
  45.   bRed=64,
  46.   bMagenta=80,
  47.   bBrown=96,
  48.   bWhite=112,
  49.   Flashing=128
  50. };
  51.  
  52. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  53. //                                                                           //
  54. // enum _ExtendedVideoModes - Defines extended text video modes              //
  55. //                                                                           //
  56. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  57.  
  58. enum _ExtendedVideoModes
  59. {
  60.   Default=0,
  61.   Normal_80x25=500,
  62.   EGA_VGA_43or50=600,
  63.  
  64.   Paradise_132x43=84,
  65.   Paradise_132x25,
  66.  
  67.   ATI_Wonder_132x25=35,
  68.   ATI_Wonder_132x44=51,
  69.  
  70.   VGA_Wizard_80x34=50,
  71.   VGA_Wizard_80x45,
  72.   VGA_Wizard_132x25=35,
  73.   VGA_Wizard_132x44=34,
  74.  
  75.   Compaq_VGS_132x25=35,
  76.   Compaq_VGS_132x28,
  77.   Compaq_VGS_132x43=34,
  78.   Compaq_VGS_132x50=39,
  79.   Compaq_VGS_132x60,
  80.  
  81.   Genoa_VGA_132x25=35,
  82.   Genoa_VGA_132x28,
  83.   Genoa_VGA_132x43=34,
  84.  
  85.   Orchid_VGA_80x60=38,
  86.   Orchid_VGA_132x25=35,
  87.   Orchid_VGA_132x28,
  88.   Orchid_VGA_132x44=34,
  89.  
  90.   Sigma_VGA_132x25=28,
  91.   Sigma_VGA_132x44,
  92.  
  93.   STB_VGA_132x25=35,
  94.   STB_VGA_132x44=34,
  95.  
  96.   Video7_80x43=64,
  97.   Video7_132x25,
  98.   Video7_132x43,
  99.   Video7_80x60,
  100.   Video7_100x60,
  101.   Video7_132x28,
  102.  
  103.   Tecmar_132x25=23,
  104.  
  105.   Tseng_132x44=34,
  106.   Tseng_132x25,
  107.   Tseng_132x28,
  108.  
  109.   VEGA_80x43=64,
  110.   VEGA_132x25,
  111.   VEGA_132x43,
  112.   VEGA_80x60,
  113.   VEGA_100x60,
  114.   VEGA_120x25=77,
  115.   VEGA_120x43
  116. };
  117.  
  118. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  119. //                                                                           //
  120. // enum _KeyBoard - Defines the available keys                               //
  121. //                                                                           //
  122. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  123.  
  124. enum _KeyBoard
  125. {
  126.   kbEsc=27,
  127.   kbBackSpace=8,
  128.   kbCr=13,
  129.   kbTab=9,
  130.   kbF1=315,
  131.   kbF2,
  132.   kbF3,
  133.   kbF4,
  134.   kbF5,
  135.   kbF6,
  136.   kbF7,
  137.   kbF8,
  138.   kbF9,
  139.   kbF10,
  140.   kbLeft=331,
  141.   kbRight=333,
  142.   kbHome=327,
  143.   kbUp,
  144.   kbPgUp,
  145.   kbEnd=335,
  146.   kbDown,
  147.   kbPgDn,
  148.   kbIns,
  149.   kbDel,
  150.  
  151.   kbShiftTab=271,
  152.   kbShiftF1=340,
  153.   kbShiftF2,
  154.   kbShiftF3,
  155.   kbShiftF4,
  156.   kbShiftF5,
  157.   kbShiftF6,
  158.   kbShiftF7,
  159.   kbShiftF8,
  160.   kbShiftF9,
  161.   kbShiftF10,
  162.  
  163.   kbCtrlLeftArrow=371,
  164.   kbCtrlRightArrow,
  165.   kbCtrlPgUp=388,
  166.   kbCtrlPgDn=374,
  167.   kbCtrlEnd=373,
  168.   kbCtrlHome=375,
  169.   kbCtrlF1=350,
  170.   kbCtrlF2,
  171.   kbCtrlF3,
  172.   kbCtrlF4,
  173.   kbCtrlF5,
  174.   kbCtrlF6,
  175.   kbCtrlF7,
  176.   kbCtrlF8,
  177.   kbCtrlF9,
  178.   kbCtrlF10,
  179.   kbCtrlA=1,
  180.   kbCtrlB,
  181.   kbCtrlC,
  182.   kbCtrlD,
  183.   kbCtrlE,
  184.   kbCtrlF,
  185.   kbCtrlG,
  186.   kbCtrlH,
  187.   kbCtrlI,
  188.   kbCtrlJ,
  189.   kbCtrlK,
  190.   kbCtrlL,
  191.   kbCtrlM,
  192.   kbCtrlN,
  193.   kbCtrlO,
  194.   kbCtrlP,
  195.   kbCtrlQ,
  196.   kbCtrlR,
  197.   kbCtrlS,
  198.   kbCtrlT,
  199.   kbCtrlU,
  200.   kbCtrlV,
  201.   kbCtrlW,
  202.   kbCtrlX,
  203.   kbCtrlY,
  204.   kbCtrlZ,
  205.  
  206.   kbAltF1=360,
  207.   kbAltF2,
  208.   kbAltF3,
  209.   kbAltF4,
  210.   kbAltF5,
  211.   kbAltF6,
  212.   kbAltF7,
  213.   kbAltF8,
  214.   kbAltF9,
  215.   kbAltF10,
  216.   kbAlt1=376,
  217.   kbAlt2,
  218.   kbAlt3,
  219.   kbAlt4,
  220.   kbAlt5,
  221.   kbAlt6,
  222.   kbAlt7,
  223.   kbAlt8,
  224.   kbAlt9,
  225.   kbAlt0,
  226.   kbAltDash,
  227.   kbAltEqual,
  228.   kbAltQ=272,
  229.   kbAltW,
  230.   kbAltE,
  231.   kbAltR,
  232.   kbAltT,
  233.   kbAltY,
  234.   kbAltU,
  235.   kbAltI,
  236.   kbAltO,
  237.   kbAltP,
  238.   kbAltA=286,
  239.   kbAltS,
  240.   kbAltD,
  241.   kbAltF,
  242.   kbAltG,
  243.   kbAltH,
  244.   kbAltJ,
  245.   kbAltK,
  246.   kbAltL,
  247.   kbAltZ=300,
  248.   kbAltX,
  249.   kbAltC,
  250.   kbAltV,
  251.   kbAltB,
  252.   kbAltN,
  253.   kbAltM,
  254.  
  255.   kbAltSpace=550
  256. };
  257.  
  258. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  259. //                                                                           //
  260. // enum _EventCodes - Event codes for Fusion                                 //
  261. //                                                                           //
  262. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  263.  
  264. enum _EventCodes
  265. {
  266.                             // Error Events --
  267.  
  268.   NoElement=900,            // No elements have been allocated
  269.   NoAvailableElement,       // None of the elements are available
  270.   NoAvailableMenus,         // When no menus are available
  271.   MemoryAllocationError,    // Fusion ran out or had problems with memory
  272.   NoAvailableOptions,       // No menu options were available
  273.  
  274.                             // Other Events (from GetEvent()) --
  275.  
  276.   ShiftEvent,               // The shift state has changes (i.e. Alt, Ctrl)
  277.  
  278.                             // Mouse Events --
  279.  
  280.   MousedEvent,              // A mouse action occured
  281.   ValidatedMousedEvent,     // Special mouse event for dialogs.  This
  282.                             // type of event is within the bounds of
  283.                             // the present element
  284.   CloseEvent,               // Close icon on window was pressed
  285.   MoveEvent,                // Window was moved
  286.   ZoomEvent,                // Window was zoomed
  287.   SizeEvent,                // Window was sized
  288.   OutsideEvent,             // Mousing outside of window
  289.   HelpEvent,                // The help system was engaged
  290.  
  291.                             // Dialog/FusionWindow Events --
  292.  
  293.   CompleteEvent,            // Event executed cleanly, proceed normally
  294.   RefreshEvent,             // Refresh all elements on the dialog
  295.   OtherRefreshEvent,        // Refresh all elements except the current one
  296.   StopEvent,                // Stop using the dialog
  297.   AbortEvent,               // Abort using a dialog and immediately
  298.   RestartEvent,             // Restarts the dialog box
  299.   FailedEvent,              // A validation() or available() function
  300.                             // failed
  301.   MagnetEvent,              // Jumps to previously magnetized object
  302.   RefreshMagnetEvent,       // Jumps to previously magnetized object and
  303.                             // does a refresh just like RefreshEvent
  304.   OtherRefreshMagnetEvent,  // Jumps to previously magnetized object and
  305.                             // does a refresh just like OtherRefreshEvent
  306.   LastElementEvent,         // At last element
  307.   FirstElementEvent,        // At first element
  308.   NextElementEvent,         // Go to next element
  309.   PreviousElementEvent,     // Go to previous element
  310.   NextGroupEvent,           // Go to next group
  311.   PreviousGroupEvent,       // Go to previous group
  312.   NextWithinGroupEvent,     // Go to next element within group
  313.   PreviousWithinGroupEvent, // Go to previous element within group
  314.   FullValidationEvent,      // Fully validates a dialog
  315.   MenuEvent,                // Something happened with the menus
  316.   NothingEvent,             // Nothing happened
  317.   MenusRemoved,             // All menus were removed
  318.   SwitchEvent,              // Just switched to another window
  319.   EngageEvent,              // Passed to global event handler when engaged
  320.   DisEngageEvent,           // Passed to global event handler when exited
  321.   VirtualEvent,             // When a virtual window event occurs this is
  322.                             // passed to the window that requests it
  323.   ClickEvent,               // You double clicked within an element
  324.  
  325.                             // PopUp Events --
  326.  
  327.   RemoveMenu,               // Remove the menus from the screen
  328.   KeepMenu                  // Keep the menu on the screen
  329. };
  330.  
  331. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  332. //                                                                           //
  333. // These are the events retuned in MouseEvent                                //
  334. //                                                                           //
  335. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-//
  336.  
  337. const MouseMoved=1;
  338. const MouseLeftButtonPress=2;
  339. const MouseLeftButtonRelease=4;
  340. const MouseRightButtonPress=8;
  341. const MouseRightButtonRelease=16;
  342. const MouseDoubleClick=32;
  343. const MouseHeldDown=64;
  344.  
  345. const LeftButton=1;
  346. const RightButton=2;
  347. const CenterButton=4;
  348.  
  349. #endif
  350.